<template>
  <div id="app">
    <router-view/>
      <div style="position: fixed;left: 0;right: 0;bottom: 0;z-index: 99">
        <Myheader></Myheader>
      </div>
    <Back v-show="isShowBack"/>
  </div>
</template>

<script>
import Myheader from "./components/header.vue";
import Back from './components/back.vue'

export default {
  name: 'App',
  components: {
    Myheader,
    Back
  },
  computed: {
    isShowBack() {
      return this.$route.path !== '/'
    }
  }
}
</script>

<style>
* {
  margin: 0;
  border: 0;
  box-sizing: border-box;
  user-select: none;
}

#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* text-align: center; */
  //background: url('https://www.tsinghua.org.cn/dfiles/18365/publish/alumni/index0/images/xwzx_bg.jpg');
  padding-top: 20px;
  //background: url("./assets/logo.jpg");
  //background-size: cover;
  min-height: 100vh;
}
</style>
